<script setup lang="ts">
import {useRouter} from "vue-router";
const router = useRouter()
const toSearch = () => {
  router.push('/product-list')
}
</script>

<template>
  <div class="search-box" @click="toSearch">
    <div class="search-wrapper">
      <i class="nbicon nbSearch"></i>
      <div class="search-text">请输入搜索关键字</div>
    </div>
  </div>
</template>

<style scoped lang="less">
.search-box {
  width: 100%;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  .search-wrapper {
    width: 90%;
    background: #fff;
    border-radius: 15px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    .search-text {
      margin-left: 8px;
      font-size: 14px;
    }
  }
}
</style>